package com.ruoyi.passenger.user.service.impl;

import com.ruoyi.passenger.user.mapper.PassengerUserMapper;
import com.ruoyi.passenger.user.service.PassengerUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @description: 乘客端用户信息
 * @author: xly
 * @date: 2021-12-14
 */
@Service
public class PassengerUserServiceImpl implements PassengerUserService {
    @Autowired
    private PassengerUserMapper passengerUserMapper;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public Long getUserId(String userName) {
        return passengerUserMapper.getUserId(userName);
    }
}
